package com.ynet.h2.db;

import java.util.HashMap;
import java.util.Map;

public class Message {

	private String returnCode ="000000";
	private String returnMsg ="成功";

	public Message(){}
	
	public Map<String, String> getMessage(String returnCode, String returnMsg){
		Map<String, String> dataMap = new HashMap<String, String>();
		dataMap.put("returnCode", returnCode);
		dataMap.put("returnMsg", returnMsg);
		return dataMap;
	}
	
	public Map<String, String> getMessage(){
		Map<String, String> dataMap = new HashMap<String, String>();
		dataMap.put("returnCode", this.returnCode);
		dataMap.put("returnMsg", this.returnMsg);
		return dataMap;
	}

	public void setMessage(String returnCode, String returnMsg){
		this.setReturnCode(returnCode);
		this.setReturnMsg(returnMsg);
	}
	
	public String getReturnCode() {
		return returnCode;
	}
	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}
	public String getReturnMsg() {
		return returnMsg;
	}
	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}
}
